package com.yunban.project.template.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author: lijiajun
 * @date: 2024-11-07
 * @version: 1.0
 */
@Data
@Schema(description = "属性信息")
public class AttributeParam implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "属性名称不能为空")
    @Schema(description = "属性名称")
    private String name;

    @NotBlank(message = "属性代码不能为空")
    @Schema(description = "属性代码")
    private String code;
}
